LOAD DATA

I. Users by Country

Plot that shows the total number of users per country jointly with the number of users per 1,000 people.

Arguments of this function:

II. Users by City

Plot that shows the total number of users per city jointly with the number of users per 1,000 people. Only cities with population larger than 300k were included

Arguments of this function:

III. Twitter users vs GDP per capita

Plot that shows the relationship between twitter user rate (users per 1,000 people) and GDP per capita (2019) per country (log scale). The only input is the countries dataframe

IV. MAPS

A. Users by City (total number of users)

Each dot represents the size of the total number of users

Arguments of this function:

B. Users by City (rate of users per thousand people)

Each dot represents the size of the rate of users per 1,000K

Arguments of this function:

dataframe (pandas dataframe): dataframe of cities total_users (bool): If True, the size of the dot represents the total number of users. If False, dots represent users per 1k people